package store

import (
	"auth/model"
	"auth/model/entity"
)

type IApi interface {
	Create(e *entity.Api) (int64, error)
	Find(id int64) (*entity.Api, error)
	Update(id int64, updates map[string]interface{}) error
	Delete(id int64) error
	List(in *model.ApiListRequest) (int, []*entity.Api, error)
	FindByParameter(in *model.ApiInfo) (*entity.Api, error)
	GetAllApis() (apis []*entity.Api, err error)
}
